#ifndef _SCROLLBUTTONDOWN_H_
#define _SCROLLBUTTONDOWN_H_
#pragma once
#include "SDL.h"
#include "ListTextBox.h"
class ScrollButtonDown
{
private:
	int x;
	int y;
	int w;
	int h;
	SDL_Surface* screen;
	SDL_Surface* image;
	SDL_Rect box;
	ListTextBox * lista;
public:
	ScrollButtonDown(SDL_Surface* screen, int x, int y, int w, int h, ListTextBox* lista);
	/**
	Determines if the button got clicked according to the event  passed 
	and if positive sends a message to the referenced list.
	**/
	void handleEvent(SDL_Event* event);
	~ScrollButtonDown(void);
	bool drawBox(void);
	/**
	Draws the button.
	**/
	void draw();
};

#endif